<?php $category = isset($data[0]->category->ln->name) ? $data[0]->category->ln->name : $data[0]->category->name; ?>
<div class="bl-zag bl-zag-bg-none">
	<h2><?php echo $category; ?></h2>
</div>
<div class="bl-face-partii">
	<div class="blface-block d_t">
    	<?php foreach ($data as $key => $value) : ?>
		<?php 
		$name = isset($value->ln->name) ? $value->ln->name : $value->name;
		$anons = isset($value->ln->anons) ? $value->ln->anons : $value->anons;
		$class = count($data)==$key+1 ? 'fl_l m_r_n' : 'fl_l';
		?>
         <div class="blface-bl-l <?php echo $class;?>">
			<div class="t_c blface-bl-l-img">
				<div class="blface-bl-l-img-bl d_in">
					<a href="<?php echo Yii::app()->createUrl('content/item', array('category'=>$value->category->alias, 'item'=>$value->alias));?>" class="d_b" title="<?php echo $name;?>">
						<?php echo BaseController::material_image(0, $value->file, '78'); ?>
					</a>
				</div>
			</div>
			<div class="blface-bl-l-name">
				<h4><?php echo $name;?></h4>
				<div class="t_c blface-bl-l-name-d">
					<span><?php echo $anons;?></span>
				</div>
			</div>
		</div>
		<?php endforeach;?>
	</div>
</div>